
import { useState } from 'react';
import { getData } from '../Data'
import { useMount } from 'ahooks';
import { FlexGrid } from '@grapecity/wijmo.react.grid';



const WijmoB05 = () => {

    const [Data, setData] = useState()

    useMount(() => {
        setData(getData(20))
    })

    if (Data) {
        return (
            <div className='Page'>
                <FlexGrid allowSorting={false} allowDragging={false} selectionMode="MultiRange" itemsSource={Data} />
                <div>
                    <div>allowSorting & allowDragging 需设置false</div>
                    <div>selectionMode 设置为 MultiRange</div>
                    <div>ctrl+click 多选</div>
                </div>
            </div>
        )
    }

}

export default WijmoB05;